Skip to content

Conversation

@jmid
Copy link
Member

@jmid jmid commented Oct 31, 2025

This 1-liner prints relevant opam variables (os, os-distribution, os-family, ...) in the Windows workflows.
The opam-repo-ci workflows already do something similar (opam config report), so it makes sense to do something similar under Windows. opam config report doesn't print os-family though, which I think is particular relevant under Windows (#28804, #28805).

This reveals why conf-libpcre isn't working under MinGW MSys #28769 (review):
os-distribution is "msys2" there, not "cygwin", causing the wrong build command to trigger.
Looking more into this, I found that this changed in ocaml/opam#5843 with opam.2.2.
It however means I have some conf-file correcting to do... 😅

FTR, the wiki is already correct about os-distribution under MSys2:
https://github.com/ocaml/opam-repository/wiki/Depexts-os-distribution---os-family-values
One could add a note about the value changing from opam.2.2 though (I don't have write access to do so).

@jmid jmid added github_actions Pull requests that update GitHub Actions code consider for merge labels Oct 31, 2025
@mseri
Copy link
Member

mseri commented Nov 3, 2025

Good idea, thanks!

@mseri mseri merged commit 6441a22 into ocaml:master Nov 3, 2025
4 checks passed
@jmid jmid deleted the print-opam-var branch November 3, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

consider for merge github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants